package com.lingnan.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.swing.plaf.synth.SynthOptionPaneUI;

/**
 * 常量配置
 * @author wweca
 */
@Component
public class ConstantPropertiesUtil implements InitializingBean {


    @Value("${aliyun.oss.file.keyid}")
    private String keyId;

    @Value("${aliyun.oss.file.keysecret}")
    private String keySecret;

    public static String KEY_ID;

    public static String KEY_SECRET;

    @Override
    public void afterPropertiesSet() throws Exception {

        KEY_ID = keyId;

        KEY_SECRET = keySecret;

    }
}
